// 请求状态码
export enum HttpStatusCode {
	// 信息性状态码
	Continue = 100,
	SwitchingProtocols = 101,

	// 成功状态码
	OK = 200,
	Created = 201,
	Accepted = 202,
	NonAuthoritativeInformation = 203,
	NoContent = 204,
	ResetContent = 205,
	PartialContent = 206,

	// 重定向状态码
	MultipleChoices = 300,
	MovedPermanently = 301,
	Found = 302,
	SeeOther = 303,
	NotModified = 304,
	UseProxy = 305,
	TemporaryRedirect = 307,
	PermanentRedirect = 308,

	// 客户端错误状态码
	BadRequest = 400,
	Unauthorized = 401,
	PaymentRequired = 402,
	Forbidden = 403,
	NotFound = 404,
	MethodNotAllowed = 405,
	NotAcceptable = 406,
	ProxyAuthenticationRequired = 407,
	RequestTimeout = 408,
	Conflict = 409,
	Gone = 410,
	LengthRequired = 411,
	PreconditionFailed = 412,
	PayloadTooLarge = 413,
	UriTooLong = 414,
	UnsupportedMediaType = 415,
	RangeNotSatisfiable = 416,
	ExpectationFailed = 417,
	ImATeapot = 418,
	MisdirectedRequest = 421,
	UnprocessableEntity = 422,
	Locked = 423,
	FailedDependency = 424,
	TooEarly = 425,
	UpgradeRequired = 426,
	PreconditionRequired = 428,
	TooManyRequests = 429,
	RequestHeaderFieldsTooLarge = 431,
	UnavailableForLegalReasons = 451,

	// 服务器错误状态码
	InternalServerError = 500,
	NotImplemented = 501,
	BadGateway = 502,
	ServiceUnavailable = 503,
	GatewayTimeout = 504,
	HttpVersionNotSupported = 505,
	VariantAlsoNegotiates = 506,
	InsufficientStorage = 507,
	LoopDetected = 508,
	NotExtended = 510,
	NetworkAuthenticationRequired = 511
}

// 上面的key值生成联合类型
export type HttpStatusCodeKeyType = keyof typeof HttpStatusCode;

// 上面的code值生成联合类型
export type HttpStatusCodeValueType = (typeof HttpStatusCode)[keyof typeof HttpStatusCode];

// 解决者的tabbar的列表
export const solverTabbarList: UviewTabbarItem[] = [
	{
		pagePath: '/pages/solver/home/index',
		text: '首页',
		name: 'home',
		iconPath: '/static/tabbar/solver-home-icon.png',
		selectedIconPath: '/static/tabbar/solver-home-icon-active.png'
	},
	{
		pagePath: '/pages/solver/task/index',
		text: '任务',
		name: 'task',
		needToken: true,
		iconPath: '/static/tabbar/solver-task-icon.png',
		selectedIconPath: '/static/tabbar/solver-task-icon-active.png'
	},
	{
		pagePath: '/pages/solver/message/index',
		text: '消息',
		name: 'message',
		needToken: true,
		iconPath: '/static/tabbar/solver-message-icon.png',
		selectedIconPath: '/static/tabbar/solver-message-icon-active.png',
		badge: 0
	},
	{
		pagePath: '/pages/solver/my/index',
		text: '我的',
		name: 'my',
		iconPath: '/static/tabbar/solver-my-icon.png',
		selectedIconPath: '/static/tabbar/solver-my-icon-active.png'
	}
];

// 求解者的tabbar的列表
export const seekerTabbarList: UviewTabbarItem[] = [
	{
		pagePath: '/pages/seeker/home/index',
		text: '首页',
		name: 'home',
		iconPath: '/static/tabbar/seeker-home-icon.png',
		selectedIconPath: '/static/tabbar/seeker-home-icon-active.png'
	},
	{
		pagePath: '/pages/seeker/task/index',
		text: '任务',
		name: 'task',
		needToken: true,
		iconPath: '/static/tabbar/seeker-task-icon.png',
		selectedIconPath: '/static/tabbar/seeker-task-icon-active.png'
	},
	{
		pagePath: '/pages/seeker/add/index',
		text: '',
		name: 'add',
		needToken: true,
		isBig: true,
		iconPath: '/static/tabbar/seeker-add-icon.png',
		selectedIconPath: '/static/tabbar/seeker-add-icon-active.png'
	},
	{
		pagePath: '/pages/seeker/message/index',
		text: '消息',
		name: 'message',
		needToken: true,
		iconPath: '/static/tabbar/seeker-message-icon.png',
		selectedIconPath: '/static/tabbar/seeker-message-icon-active.png',
		badge: 3
	},
	{
		pagePath: '/pages/seeker/my/index',
		text: '我的',
		name: 'my',
		iconPath: '/static/tabbar/seeker-my-icon.png',
		selectedIconPath: '/static/tabbar/seeker-my-icon-active.png'
	}
];

// 解决者我的页面的操作按钮列表
export const handleItemList = [
	{
		name: '收藏',
		iconUrl: '/static/solver-my/collect.png'
	},
	{
		name: '评价',
		iconUrl: '/static/solver-my/commet.png'
	},
	{
		name: '关注',
		iconUrl: '/static/solver-my/like.png'
	},
	{
		name: '粉丝',
		iconUrl: '/static/solver-my/fans.png'
	}
] as const;


// 角色的三种类型
export const RoleType = {
	'FREELANCER': '自由职业者',
	'STUDENT': '学生',
	'STAFF': '上班族'
} as const
